<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
</head>
<body>
<form action="" method="post">
    <table>
        <tr>
            <th>姓名</th>
        </tr>
        <tr>
            <td><input type="text" name="username" placeholder="{{ user.username }}"></td>
        </tr>
        <tr>
            <th>密码</th>
        </tr>
        <tr>
            <td><input type="password" name="password" placeholder="{{ user.password }}"></td>
        </tr>
        <tr>
            <th>头像</th>
        </tr>
        <tr>
            <td><input type="text" name="img" placeholder="{{ user.img }}"></td>
        </tr>
        <tr>
            <th>类型</th>
        </tr>
        <tr>
            {% if user.typ == 0 %}
                <td><input type="text" name="typ" placeholder="普通用户"></td>
            {% elif user.typ == 1 %}
                <td><input type="text" name="typ" placeholder="管理员"></td>
            {% elif user.typ == 2 %}
                <td><input type="text" name="typ" placeholder="商家"></td>>
            {% endif %}
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
</form>
</body>
</html>